package com.ruoyi.configuration.domain;

import java.math.BigDecimal;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 团队签约奖励对象 mg_team_signing_rewards
 * 
 * @author ruoyi
 * @date 2024-01-16
 */
public class MgTeamSigningRewards extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String id;

    /** 消费金额 */
    @Excel(name = "消费金额")
    @NotNull
    private BigDecimal price;

    /** 预存类型 0  以上  1 常规 */
    @Excel(name = "预存类型 0  以上  1 常规")
    @NotNull
    private Byte type;

    /** 折扣 */
    @Excel(name = "折扣")
    @NotNull
    @DecimalMin(value = "1",   message = "折扣最小值为1")
    @DecimalMax(value = "99", message = "折扣最小值为99")
    private BigDecimal discount;

    /** 排序 */
    @Excel(name = "排序")
    private String sort;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setType(Byte type) 
    {
        this.type = type;
    }

    public Byte getType() 
    {
        return type;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setSort(String sort) 
    {
        this.sort = sort;
    }

    public String getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("price", getPrice())
            .append("type", getType())
            .append("discount", getDiscount())
            .append("sort", getSort())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
